Copyright(C) 1994 Terumasa KODAKA , Takeshi KONO


■RAMDISK

INT 1Bh - Function 05h (RAMDISK)
Classification   RAMDISK
Name             Write to RAMDISK
                 Undocumented
Target           RAMDISK.SYS
Input            AH=05h
                 AL=E0h (DA/UA)
                 BX=Number of sectors to transfer
                   * If 0000h is specified, no transfer will occur
                 CX=Transfer start sector address
                 DX=0000h (for extending the transfer start sector address)
                 ES:BP=Buffer address
Output           CF=End status
                   1=Abnormal end
                   0=Normal end
                 AX=Status information
                   0000h=Normal end
                   0008h=BX or CX value is invalid
                   Unchanged = DX is not 0000h
Explanation    o Write data to RAMDISK.
                 The size of one sector is 512 bytes.
               o Since multiple RAMDISK.SYSes are not permitted to be installed, even if you set a value other
                 than E0h in AL(DA/UA), you can only access the last installed RAM disk drive.
               o When AL=E0h, if you specify a value other than AH=05h,06h and execute INT 1Bh, the output will
                 be CF=0, AX=unchanged, and the program will return without doing anything.
Related


INT 1Bh - Function 06h (RAMDISK)
Classification   RAMDISK
Name             Reading from RAMDISK
                 Undocumented
Target           RAMDISK.SYS
Input            AH=06h
                 AL=E0h (DA/UA)
                 BX=Number of sectors to transfer
                   * If 0000h is specified, no transfer will occur
                 CX=Transfer start sector address
                 DX=0000h (for extending the transfer start sector address)
                 ES:BP=Buffer address
Output           CF=End status
                   1=Abnormal end
                   0=Normal end
                 AX=Status information
                   0000h=Normal end
                   0008h=BX or CX value is invalid
                   Unchanged = DX is not 0000h
Explanation    o Read data from RAMDISK.
                 The size of one sector is 512 bytes.
               o Since multiple RAMDISK.SYSes are not allowed, even if you set a value other than E0h
                 to AL (DA/UA), you can only access the last RAM disk drive that was installed.
               o When AL=E0h, if you specify a value other than AH=05h,06h and execute INT 1Bh, the output
                 will be CF=0, AX=unchanged, and the program will return without doing anything.
Related


■BRANCH4670 Virtual Disk


INT 1Bh - Function 05h (BRANCH)
Classification   BRANCH virtual disk
Name             Write to BRANCH virtual disk
                 Undocumented
Target           PC-9864
Input            AH=05h
                 AL=DA/UA (60-63h)
                 CH=Station number
                 CL=Maximum number of sectors to transfer at one time (01-03h)
                 DH=Track number
                 DL=Sector number (1 sector is 256 bytes)
                 BX=Transfer size (unit: bytes)
                 ES:BP=Buffer address
                 DS:SI=Parameter address
Output           CF=Exit status
                 AH=Exit code (20h, 30h, 40h, 60h, 70h)
Explanation    o Write data to BRANCH4670 virtual disk. Details unknown.
Related          INT D3h


INT 1Bh - Function 06h (BRANCH)
Classification   BRANCH virtual disk
Name             Reading from BRANCH virtual disk
                 Undocumented
Target           PC-9864
Input            AH=06h
                 AL=DA/UA (60-63h)
                 CH=Station number
                 CL=Maximum number of sectors to transfer at one time (01-07h)
                 DH=Track number
                 DL=Sector number (1 sector is 256 bytes)
                 BX=Transfer size (unit: bytes)
                 ES:BP=Buffer address
                 DS:SI=Parameter address
Output           CF=Exit status
                 AH=Exit code (20h, 30h, 40h, 60h, 70h)
Explanation    o BRANCH4670 Read data from virtual disk. Details unknown.
Related          INT D3h


■RAM DRIVE


INT 1Bh - Function 83h (RAM DRIVE)
Classification   RAM DRIVE
Name             Initial setting of RAM DRIVE
                 Undocumented
Target           Machines with RAM DRIVE (including PC-9801UR), PC-9801NL/R
Input            AH=83h
                 AL=4xh
Output           AH=00h
Explanation    o Initialize RAM DRIVE, RESUME (for machines that support RESUME), etc. Details unknown.
                 In machines with RAM DRIVE and PC-9801NL/R, D8h is registered at DA=4h (0000:04B4h) in DISK_XROM.
                 When INT 1Bh is executed with DA/UA=4xh, execution moves to the processing routine in the D800h segment.
                 The following processing is performed only when AH=83h and RAM DRIVE is set.
                 - Set 0000:0400h bit 5 according to the 98NOTE menu settings.
                 - Set INT 0Eh, 12h, 13h, 1Fh to the D800h segment.
                 - Set INT 02h to the D800h segment if RESUME is ON in 98NOTE without SMM.
                 - Other processing.
                 If AH≠83h or RAM DRIVE is not set, do nothing and return with AH=00h.
Related          0000:0400h bit 5
                 0000:04B0h


■CD-ROM


INT 1Bh - Function 02h (IDE CD-ROM)
Classification   IDE BIOS
Name             Send command to IDE CD-ROM
                 Undocumented
Target           IDE CD-ROM equipped device
Input            AH=02h
                 AL=DA/UA(81h)
                 BX=Receive buffer length
                 DL=FFh
                 ES:BP=Start address of command packet
                 <Command packet format>
                 ----------------+------------------------
                 Address         | Contents
                 ----------------+------------------------
                 ES:BP+00h(BYTE) | SCSI command
                 ES:BP+01h(BYTE) | Unused
                 ES:BP+02h(BYTE) | SCSI parameter #0
                 ES:BP+03h(BYTE) | SCSI parameter #1
                 ES:BP+04h(BYTE) | SCSI parameter #2
                 ES:BP+05h(BYTE) | SCSI parameter #3
                 ES:BP+06h(BYTE) | SCSI parameter #4
                 ES:BP+07h(BYTE) | SCSI parameter #5
                 ES:BP+08h(BYTE) | SCSI parameter #6
                 ES:BP+09h(BYTE) | SCSI parameter #7
                 ES:BP+0Ah(BYTE) | SCSI parameter #8
                 ES:BP+0Bh(BYTE) | SCSI parameter #9
                 ES:BP+0Ch(WORD) | Receive buffer address offset
                 ES:BP+0Eh(WORD) | Receive buffer address segment
                 ----------------+------------------------
                 Output AH=Return code
                 ----------+------------------------------------------
                 AH        | Contents
                 ----------+------------------------------------------
                 00h(CF=0) | Normal End
                 40h(CF=1) | Equipment Check
                 60h(CF=1) | Not Ready
                 ----------+------------------------------------------
Explanation    o Sends commands to the IDE CD-ROM mounted in the file bay.
                 The command system conforms to SCSI.
               o Data transmission commands (such as WRITE) cannot be used. It is thought to be used to send commands for playing music, etc.
Related          INT 1Bh - Function 16h (IDE CD-ROM)


INT 1Bh - Function 16h (IDE CD-ROM)
Classification   IDE BIOS
Name             Reading data from IDE CD-ROM
                 Undocumented
Target           IDE CD-ROM equipped devices
Input            AH=16h
                 AL=DA/UA(81h)
                 BX=Data length
                 DX:CX=Linear sector address (0~)
                 ES:BP=Buffer address
Output           CF=End condition
                   1=Abnormal end
                   0=Normal end
                 AH=Status information
Explanation    o Reads data from an IDE CD-ROM mounted in the file bay.
                 Note that CD-ROMs connected via SCSI can be read using the SCSI HD BIOS.
Related          INT 1Bh - Function 02h (IDE CD-ROM)
                 INT 1Bh - Function 06h (SASI/SCSI/ESDI/IDE)


INT 1Bh - Function FFCFh (NECCD)
Category
Name             Unknown
                 Undocumented
Target           NECCD.SYS
Input            AX=FFCFh
                 ES:BX=Unknown
Output           Unknown
Explanation    o Function unknown.
                 Hooked by NECCD.SYS (CD-ROM driver included with Japanese MS-DOS CD-ROM Extensions Ver 2.0B). Only effective when /T option is specified.
Related


INT 1Bh - Function 02h, 03h, 04h, 06h, 07h, 0Ah, 0Ch, 0Eh, 82h, 8Ah, 8Ch, 8Eh (NECCD)
Classification
Name             Unknown
                 Undocumented
Target           NECCD.SYS
Input            AH = Function number
                 AL = DA/UA (04-07h, 84-87h)
Output           Unknown
Explanation    o Function unknown.
                 Hooked by NECCD.SYS (CD-ROM driver included with Japanese MS-DOS CD-ROM Extensions Ver 2.0B).
Related